package designpattern.simplefactory.commodity;

/**
 * 不使用设计模式创建商品
 */
public class CommonCreateService {

    public void createCommodity(CommodityEnum commodityEnum){
        if (commodityEnum.equals(CommodityEnum.COMMODITY_A)){
            System.out.println("创建A商品");
        }else if (commodityEnum.equals(CommodityEnum.COMMODITY_B)){
            System.out.println("创建B商品");
        }else if (commodityEnum.equals(CommodityEnum.COMMODITY_C)){
            System.out.println("创建C商品");
        }else if (commodityEnum.equals(CommodityEnum.COMMODITY_D)){
            System.out.println("创建D商品");
        }

    }
}
